﻿using ManYanPrism.Shell.Views;
using ManYanPrism.Shell.Views.User;
using Prism.Mvvm;
using Prism.Regions;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ManYanPrism.Shell.ViewModels
{
    public class MainViewModel:BindableBase
    {
        private IRegionManager _regionManager;
        public MainViewModel(IRegionManager regionManager)
        {
            _regionManager = regionManager;
            _regionManager.RegisterViewWithRegion("mainContent", typeof(User));
            _regionManager.RegisterViewWithRegion("leftContent", typeof(Nav));
        }
    }
}
